/**
 * Copyright(c) 2013 Jade Techonologies Co., Ltd.
 *
 * History:
 *   13-7-11 下午2:55 Created by sky
 */
package com.jade.modules.message.sms.bestone;

import com.jade.modules.message.sms.comm.SmsRequest;
import com.jade.modules.message.sms.comm.SmsResponse;

/**
 * 登录包。
 *
 * @author sky
 * @version 1.0 13-7-11 下午2:55
 */
public class Login
        extends SmsRequest
{
    private String username;
    private String password;

    public Login()
    {
        super(BestoneConstants.CMD_LOGIN);
    }

    public Login(int sequenceId)
    {
        super(BestoneConstants.CMD_LOGIN, sequenceId);
    }

    public String getUsername()
    {
        return username;
    }

    public void setUsername(String username)
    {
        this.username = username;
    }

    public String getPassword()
    {
        return password;
    }

    public void setPassword(String password)
    {
        this.password = password;
    }

    @Override
    public <Response extends SmsResponse> Response createResponse()
    {
        return (Response) new LoginResp(getIntSequenceId());
    }
}
